import matplotlib.pyplot as plt
import numpy as np
plt.figure(figsize=(6,4))
x=np.arange(1,8)
y=np.array([10,20,30,50,60,90,55])
plt.rcParams['font.sans-serif']='SimHei'
plt.rcParams['axes.unicode_minus']=False
plt.title("石朔源")
plt.xlabel('科目')
plt.ylabel('分数')
for a,b in zip(x,y):
    plt.text(x=a,y=b,s=b,fontsize=12,ha='left',va='center')
plt.plot(x,y)
plt.legend(('分数',),loc='best')
plt.savefig('c:/分数.png')
plt.show()